<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      const canvas = document.createElement("canvas");
      canvas.width = 200;
      canvas.height = 400;
      document.body.append(canvas);
      const ctx = canvas.getContext("2d");
      // 画圆弧
      // arc(x, y, radius, startAngle, endAngle, anticlockwise)
      ctx.arc(100, 100, 50, 0, Math.PI * 2, false);
      ctx.stroke();
    </script>
  </body>
</html>
